package com.hoas.comparedb.core;


import com.hoas.comparedb.pojo.TableChange;
import com.hoas.comparedb.util.CompareReporter;

import java.io.Closeable;
import java.io.Writer;
import java.util.List;

public interface DBWriter extends Closeable {

    void write(
            DBReader soReader,
            DBReader snReader,
            List<TableChange> tableChanges,
            CompareReporter compareReporter,
            String type
    ) throws Exception;

    Writer getWriter();
}
